home *** CD-ROM | disk | FTP | other *** search
- Path: news.csie.nctu.edu.tw!usenet
- From: u8113074@cc.nctu.edu.tw (Frederick Y.J. Wen)
- Newsgroups: comp.lang.c++
- Subject: >>>[Q] Static class <<<
- Date: Sun, 07 Jan 1996 18:36:25 GMT
- Organization: Dept. Comp. Sci. & Info. Eng., Chiao-Tung Univ., Taiwan
- Message-ID: <30f01106.5905772@news.csie.nctu.edu.tw>
- NNTP-Posting-Host: @a237191.nctu.edu.tw
- X-Newsreader: Forte Agent .99d/32.168
-
- I want to write a program to build a queue with bi-direction
- link. This is my program:
-
- class queue {
- protected:
- char *content;
- class queue *p;
- class queue *n;
- static class queue BOTTOM;
- static class queue TOP;
-
- public:
- queue(char *);
- ~queue();
- };
- But I don't know how to initialize the BOTTOM and TOP.
- Anyone can tell me how to declare they?
-
-
-